package com.kgo.eidtor.service.impl;

import com.kgo.eidtor.entity.LoginEntity;
import com.kgo.eidtor.service.LoginService;
import com.kgo.eidtor.util.JWTTokenUtil;
import org.springframework.stereotype.Service;

/**
 * @author keepgoon
 * @Description: TODO
 * @date 2019/3/19:55
 */
@Service
public class LoginServiceImpl implements LoginService {
    @Override
    public String login(LoginEntity login) {
        return JWTTokenUtil.getTokenWithClaim(login.getUserName());

    }
}
